package com.chengqs.gulimall.product.feign;

import com.chengqs.common.to.SkuReductionTO;
import com.chengqs.common.to.SpuBoundTO;
import com.chengqs.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient("gulimall-coupon")
public interface CouponFeignService {

    @PostMapping("/coupon/spubounds/save")
    R saveSpuBouds(@RequestBody SpuBoundTO spuBoundTO);

    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveSpuReduction(@RequestBody SkuReductionTO skuReductionTO);
}
